package com.toolsder.demo.spring.security.jwt.repository;

import com.toolsder.demo.spring.security.jwt.entity.database.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * created by 猴子请来的逗比 On 2020/8/11
 *
 * @author by 猴子请来的逗比
 */
public interface RoleRepository extends JpaRepository<Role, Long>, JpaSpecificationExecutor<Role> {

    boolean existsByRoleCode(String roleCode);


    Role findByRoleCode(String roleCode);
}
